-- GENERATED SPELL FOR [Risen Wintergarde Mage] --


function spell0_27283(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13339,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27283', 615, 1)
end

function spell1_27283(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27283', 7000, 1)
end

function Sorts_27283(pUnit, Event)
local choix_sorts_27283 = math.random(0, 1)
if choix_sorts_27283 == 0 then
pUnit:RegisterEvent('spell0_27283', 1, 1)
end
if choix_sorts_27283 == 1 then
pUnit:RegisterEvent('spell1_27283', 1, 1)
end
end

function mob27283_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27283', math.random(1500, 3000), 1)
end

function mob27283_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27283_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27283_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27283, 1, 'mob27283_Action')
RegisterUnitEvent(27283, 2, 'mob27283_Leave')
RegisterUnitEvent(27283, 3, 'mob27283_Kill')
RegisterUnitEvent(27283, 4, 'mob27283_Die')
